package com.msb.test08;

public class Student extends Person{
    //定义子类额外的拓展的方法和属性
    private String sno;
    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public void study(){
        System.out.println("学生正在学习......");
    }

    public void eat(){
        this.sleep();
        System.out.println("学生吃东西......");
        super.eat();
    }



}
